.class Les/hk;
.super Les/fk;
.source "AdSingleImageViewHolder.java"


# instance fields
.field k:Landroid/widget/ImageView;


# direct methods
.method constructor <init>(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Les/fk;-><init>(Landroid/view/View;)V

    const v0, 0x7f090081

    .line 2
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Les/hk;->k:Landroid/widget/ImageView;

    return-void
.end method

.method private static a(I)I
    .locals 1

    const/4 v0, 0x1

    if-eq p0, v0, :cond_1

    const/4 v0, 0x2

    if-eq p0, v0, :cond_0

    const p0, 0x7f0c0207

    return p0

    :cond_0
    const p0, 0x7f0c0209

    return p0

    :cond_1
    const p0, 0x7f0c0208

    return p0
.end method

.method static a(Landroid/view/ViewGroup;Lcom/kwad/sdk/api/KsNativeAd;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;Les/bk;I)Landroid/view/View;
    .locals 8

    .line 1
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    invoke-static {p5}, Les/hk;->a(I)I

    move-result p5

    const/4 v1, 0x0

    invoke-virtual {v0, p5, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p5

    .line 2
    new-instance v0, Les/hk;

    invoke-direct {v0, p5}, Les/hk;-><init>(Landroid/view/View;)V

    .line 3
    move-object v2, p5

    check-cast v2, Landroid/view/ViewGroup;

    move-object v3, v0

    move-object v4, p1

    move-object v5, p2

    move-object v6, p3

    move-object v7, p4

    invoke-static/range {v2 .. v7}, Les/fk;->a(Landroid/view/ViewGroup;Les/fk;Lcom/kwad/sdk/api/KsNativeAd;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;Les/bk;)V

    .line 4
    invoke-interface {p1}, Lcom/kwad/sdk/api/KsNativeAd;->getImageList()Ljava/util/List;

    move-result-object p2

    if-eqz p2, :cond_0

    invoke-interface {p1}, Lcom/kwad/sdk/api/KsNativeAd;->getImageList()Ljava/util/List;

    move-result-object p2

    invoke-interface {p2}, Ljava/util/List;->isEmpty()Z

    move-result p2

    if-nez p2, :cond_0

    .line 5
    invoke-interface {p1}, Lcom/kwad/sdk/api/KsNativeAd;->getImageList()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/kwad/sdk/api/KsImage;

    if-eqz p1, :cond_0

    .line 6
    invoke-interface {p1}, Lcom/kwad/sdk/api/KsImage;->isValid()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 7
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p0

    invoke-static {p0}, Lcom/bumptech/glide/c;->d(Landroid/content/Context;)Lcom/bumptech/glide/h;

    move-result-object p0

    invoke-interface {p1}, Lcom/kwad/sdk/api/KsImage;->getImageUrl()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/bumptech/glide/h;->a(Ljava/lang/String;)Lcom/bumptech/glide/g;

    move-result-object p0

    iget-object p1, v0, Les/hk;->k:Landroid/widget/ImageView;

    invoke-virtual {p0, p1}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    :cond_0
    return-object p5
.end method
